package com.zy.web.demo.duoxiancheng.demo7;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/7/29 10:35
 * 线程的优先级继承
 */
public class Test7 {

    public static void main(String[] args) {
        System.out.println("begin = "+Thread.currentThread().getPriority());
        Thread.currentThread().setPriority(6);
        System.out.println("end = "+Thread.currentThread().getPriority());
        MyThread myThread = new MyThread();
        myThread.start();

    }

}
